package com.edu.exam.enums.examination.paper;

/**
 * 识别状态枚举
 *
 * 从ScanRecognitionResult实体类中提取的独立枚举
 *
 * @author System
 * @version 1.0.0
 */
public enum RecognitionStatus {
    PENDING("待处理"),
    PROCESSING("处理中"),
    SUCCESS("成功"),
    FAILED("失败"),
    PARTIAL_SUCCESS("部分成功"),
    TIMEOUT("超时"),
    CANCELLED("已取消"),
    RETRY("重试"),
    SKIPPED("已跳过"),
    QUEUED("已排队"),
    IN_PROGRESS("进行中"),
    COMPLETED("已完成"),
    ERROR("错误"),
    WARNING("警告"),
    UNKNOWN("未知"),
    NOT_STARTED("未开始"),
    INTERRUPTED("已中断"),
    RESUMED("已恢复"),
    PAUSED("已暂停");

    private final String description;

    RecognitionStatus(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    /**
     * 获取显示名称（中文）
     *
     * @return 中文显示名称
     */
    public String getDisplayName() {
        return description;
    }
}